package genetics;

import java.util.Random;

/**
 * Mutation function interface.
 * @author pcdejager
 *
 */
public interface MutationFunction {
    /**
     * Mutate a gene.
     * @param random The random number generator to use
     * @param value The value to mutate
     * @param size The size of the gene
     * @return The resulting gene
     */
    int mutate(Random random, int value, int size);
}
